package com.xjscrm.console.common.util;

import com.xjscrm.console.vo.LoginVO;

/**
 * @author mingyang.chen create in 2024/3/14 18:32
 */
public class LoginContext {

    private static ThreadLocal<LoginVO> loginKey = new ThreadLocal<>();

    public static void delLogin() {
        loginKey.remove();
    }

    public static LoginVO getLogin() {
        return loginKey.get();
    }

    public static void setLogin(LoginVO login) {
        loginKey.set(login);
    }
}
